package cc.eddic.pratice.programmingparadigms.streampractice;

import lombok.ToString;

/**
 * 按照姓名、分类（分类名、子分类名）统计分数
 */
@ToString
public class ScoreOfStudentAndCategory {
    /**
     * @param studentName  姓名
     * @param categoryName 分类名或子分类名
     * @param score        分数
     */
    public ScoreOfStudentAndCategory(String studentName, String categoryName, int score) {
        this.score = score;
        this.studentName = studentName;
        this.categoryName = categoryName;
    }

    public int getScore() {
        return score;
    }

    public String getStudentName() {
        return studentName;
    }

    public String getCategoryName() {
        return categoryName;
    }

    private final int score;
    private final String studentName;

    private final String categoryName;
}
